package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.LuntaiTyreMapper;
import com.ruoyi.system.domain.LuntaiTyre;
import com.ruoyi.system.service.ILuntaiTyreService;

/**
 * 轮胎品牌Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-02-17
 */
@Service
public class LuntaiTyreServiceImpl implements ILuntaiTyreService 
{
    @Autowired
    private LuntaiTyreMapper luntaiTyreMapper;

    /**
     * 查询轮胎品牌
     * 
     * @param id 轮胎品牌主键
     * @return 轮胎品牌
     */
    @Override
    public LuntaiTyre selectLuntaiTyreById(Integer id)
    {
        return luntaiTyreMapper.selectLuntaiTyreById(id);
    }

    /**
     * 查询轮胎品牌列表
     * 
     * @param luntaiTyre 轮胎品牌
     * @return 轮胎品牌
     */
    @Override
    public List<LuntaiTyre> selectLuntaiTyreList(LuntaiTyre luntaiTyre)
    {
        return luntaiTyreMapper.selectLuntaiTyreList(luntaiTyre);
    }

    /**
     * 新增轮胎品牌
     * 
     * @param luntaiTyre 轮胎品牌
     * @return 结果
     */
    @Override
    public int insertLuntaiTyre(LuntaiTyre luntaiTyre)
    {
        return luntaiTyreMapper.insertLuntaiTyre(luntaiTyre);
    }

    /**
     * 修改轮胎品牌
     * 
     * @param luntaiTyre 轮胎品牌
     * @return 结果
     */
    @Override
    public int updateLuntaiTyre(LuntaiTyre luntaiTyre)
    {
        return luntaiTyreMapper.updateLuntaiTyre(luntaiTyre);
    }

    /**
     * 批量删除轮胎品牌
     * 
     * @param ids 需要删除的轮胎品牌主键
     * @return 结果
     */
    @Override
    public int deleteLuntaiTyreByIds(Integer[] ids)
    {
        return luntaiTyreMapper.deleteLuntaiTyreByIds(ids);
    }

    /**
     * 删除轮胎品牌信息
     * 
     * @param id 轮胎品牌主键
     * @return 结果
     */
    @Override
    public int deleteLuntaiTyreById(Integer id)
    {
        return luntaiTyreMapper.deleteLuntaiTyreById(id);
    }
}
